package com.deep.ware.feign;

import com.deep.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Deep
 * @date 2022/1/22
 */
@FeignClient("mall-product")
public interface ProductFeignService {
    /**
     * 远程调用 product 获取商品名称
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);
}
